widget: Don't print underallocation warnings by default
authorChristoph Reiter <reiter.christoph@gmail.com>
Tue, 27 Sep 2016 09:39:04 +0000 (11:39 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Sep 2016 18:41:01 +0000 (14:41 -0400)
See similar changes:
    https://git.gnome.org/browse/gtk+/commit/?id=1b15588732f2c4e3c59994a59613d4e5c963e283
    https://git.gnome.org/browse/gtk+/commit/?id=54fdcb3ffac3383432b379f3e16e8cb0086b8101

https://bugzilla.gnome.org/show_bug.cgi?id=770388

gtk/gtkwidget.c

index 29d8f9a6088e5baa187933a9aa3dd2bc3c0c7d6d..4b2f5c894c7c691504ad9d9c8e6af5ce7f46b345 100644 (file)
@@ -6037,7 +6037,7 @@ gtk_widget_size_allocate_with_baseline (GtkWidget     *widget,
       gtk_widget_get_preferred_width_for_height (widget, real_allocation.height, &min_width, &natural_width);
     }
 
-#ifdef G_ENABLE_DEBUG
+#ifdef G_ENABLE_CONSISTENCY_CHECKS
   if ((min_width > real_allocation.width || min_height > real_allocation.height) &&
       !GTK_IS_SCROLLABLE (widget))
     g_warning ("gtk_widget_size_allocate(): attempt to underallocate %s%s %s %p. "